package com.stepforward.me;





import java.util.ArrayList;
import java.util.Calendar;

import android.app.Activity;
import android.app.AlarmManager;
import android.app.Dialog;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;



public class AlarmRoute extends Activity {
    /** Called when the activity is first created. */
	AlarmHelper dbHelper;
	private ListView alarmList;
	private TextView txtFav;
	private Button addButton;
	


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.addmain);
        
        dbHelper=new AlarmHelper(this);
        ArrayList<String> matches= new ArrayList<String>();
       matches = dbHelper.getAllAlarm();
        alarmList = (ListView)findViewById(R.id.alarmList);
        alarmList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,matches));
        
        addButton = (Button) findViewById(R.id.alarmdelete ); 
        addButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), AddAlarm.class);
                startActivityForResult(myIntent, 0);
            }

        });
        
  
            
        /*
        wordsList = (ListView) findViewById(R.id.list);
        dbHelper=new MyFavoriteHelper(this);
        ArrayList<String> matches= dbHelper.getAllFavoritesName();
        wordsList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,matches));
        txtFav=(TextView)findViewById(R.id.txtFav);
        txtFav.setText(txtFav.getText()+String.valueOf(dbHelper.getFavCount()));
        addButton = (Button) findViewById(R.id.add);        //wordsList.setChoiceMode(wordsList.CHOICE_MODE_SINGLE);

        addButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), AddFavorite.class);
                startActivityForResult(myIntent, 0);
            }

        });
*/
    }


    public void addButtonClicked(View view)
    
    {
    	
    	
    }
    public void viewButtonClicked(View view)
    {
    	
    	
    }
 
}